import fetch from '@/utils/fetch'
export function apiGetOutsourcerPointList(listQuery) {
  return fetch({
    url: '/api/v1/outsourcerPoint/list',
    method: 'get',
    params: listQuery
  })
}

export function apiGetOutsourcerPoint(outsourcerPointId) {
  return fetch({
    url: '/api/v1/outsourcerPoint',
    method: 'get',
    params: {
      id: outsourcerPointId
    }
  })
}

export function apiAddOutsourcerPoint(outsourcerPointDto) {
  return fetch({
    url: '/api/v1/outsourcerPoint',
    method: 'post',
    data: outsourcerPointDto
  })
}

export function apiUpdOutsourcerPoint(OutsourcerPointDto) {
  return fetch({
    url: '/api/v1/outsourcerPoint',
    method: 'put',
    data: OutsourcerPointDto
  })
}

export function apiDelOutsourcerPoint(outsourcerPointId) {
  return fetch({
    url: '/api/v1/outsourcerPoint',
    method: 'delete',
    params: {
      id: outsourcerPointId
    }
  })
}

export function apiExport(listQuery) {
  return fetch({
    url: '/api/v1/outsourcer/export',
    method: 'post',
    data: listQuery,
    responseType: 'arraybuffer'
  })
}
